package com.ruoyi.quality.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;
import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 不合格品损失业务对象 quality_rejectsn_losses
 *
 * @author yanjun
 * @date 2023-09-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class QualityRejectsnLossesBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long rejectsnId;

    /**
     * 发现单位
     */
    @NotBlank(message = "发现单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String discoveryUnit;

    /**
     * 责任单位
     */
    @NotBlank(message = "责任单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String responsibilityUnit;

    /**
     * 信息单号
     */
    @NotBlank(message = "信息单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String oddNumber;

    /**
     * 单位
     */
    @NotBlank(message = "单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderUnit;

    /**
     * 部门
     */
    @NotBlank(message = "部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptAbbreviation;

    /**
     * 产品编号
     */
    @NotBlank(message = "产品编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contractNumber;

    /**
     * 零件件号
     */
    @NotBlank(message = "零件件号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String partNumber;

    /**
     * 项目号
     */
    @NotBlank(message = "项目号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectNumber;

    /**
     * 零件名称
     */
    @NotBlank(message = "零件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String partName;

    /**
     * 材质
     */
    @NotBlank(message = "材质不能为空", groups = { AddGroup.class, EditGroup.class })
    private String material;

    /**
     * 重量
     */
    @NotNull(message = "重量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal weight;

    /**
     * 工时
     */
    @NotNull(message = "工时不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal workingHours;

    /**
     * 单价
     */
    @NotNull(message = "单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal unitPrice;

    /**
     * 损失
     */
    @NotNull(message = "损失不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal lossAmount;

    /**
     * 严重级别
     */
    @NotBlank(message = "严重级别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String severityLevel;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long number;

    /**
     * 检验情况
     */
    @NotBlank(message = "检验情况不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inspectionStatus;

    /**
     * 处理建议
     */
    @NotBlank(message = "处理建议不能为空", groups = { AddGroup.class, EditGroup.class })
    private String handlingSuggestion;

    /**
     * 原因代码
     */
    @NotBlank(message = "原因代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reasonCode;

    /**
     * 缺陷代码
     */
    @NotBlank(message = "缺陷代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String defectCode;

    /**
     * 处理结论
     */
    @NotBlank(message = "处理结论不能为空", groups = { AddGroup.class, EditGroup.class })
    private String handlingConclusion;

    /**
     * 登记时间
     */
    @NotNull(message = "登记时间不能为空", groups = { AddGroup.class, EditGroup.class })

    private Date registrationTime;


}
